import request from "@/utils/request";

export function createTree(data) {
  return request({
    url: "/tree/info/create",
    method: "post",
    data,
  });
}
export function updateTree(data) {
  return request({
    url: "/tree/info/edit",
    method: "post",
    data,
  });
}
export function getTreeList(params) {
  return request({
    url: "/tree/info/list",
    method: "get",
    params,
  });
}
export function deleteTree(params) {
  return request({
    url: "/tree/info/delete",
    method: "get",
    params,
  });
}
